<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>${title}</title>
    ${"<"}@import module=['mootools','jspxnet'] />
    <script language="javascript">
        window.addEvent('domready', function() {
             new Request.Validator("${varName}Form.\${suffix}");
             <#if where="haveDate">new Calendar().cssInit();</#if>
        });
    </script>
    <link href="skin/layout.css" rel="stylesheet" type="text/css" />
</head>
<body jskin="true">
<div class="formContainer mWrap">
    <div class="mTitPanel addBoardLogo">
        ${title}
    </div>

        <div class="mConPanel">
        ${"<"}@information />
        <div id="helpTip"></div>
        <form id="${varName}Form" name="${varName}Form"  method="post" >
            <fieldset>
            <legend class="togglers">基本信息</legend>
            <#list column=columns >
                <#if where="jumpFields.contains(column.name)"><#continue /></#if>
                    <#if where="column.classType.name=='java.util.Date'">
                        <div class="row">
                            <label class="tit" for="${column.name}">${column.caption}</label>
                            <div class="con">
                                <input id="${column.name}" name="${column.name}" type="date" class="calendar" value="\${${varName}.${column.name}.string('yyyy-MM-dd')}"/>
                                <span id="${column.name}Msg" class="note"></span>
                            </div>
                        </div>
                        <#continue />
                    </#if>
                    <#if where="column.option.toBoolean()">
                        <div class="row">
                             <label class="tit" for="${column.name}">${column.caption}</label>
                             <div class="con">
                                ${"<"}@radios name="${column.name}" list="${column.option}" selected=${varName}.${column.name} />
                                <span id="${column.name}Msg" class="note"></span>
                             </div>
                        </div>
                        <#continue />
                    </#if>
                    <#if where="column.classType.name=='java.lang.String'&&!column.option.toBoolean()&&column.length lt 200">
                        <div class="row">
                            <label class="tit" for="${column.name}">${column.caption}</label>
                            <div class="con">
                                <input id="${column.name}" name="${column.name}" type="text" value="\${${varName}.${column.name}}"/>
                                <span id="${column.name}Msg" class="note"></span>
                            </div>
                        </div>
                        <#continue />
                    </#if>
                    <#if where="column.classType.name=='java.lang.String'&&!column.option.toBoolean()&&column.length gt 200">
                        <div class="columnPanel" >
                            <label class="tit" for="${column.name}">${column.caption}</label>
                            <div class="con">
                                <textarea id="${column.name}" name="${column.name}" >\${${varName}.${column.name}}</textarea>
                                <span id="${column.name}Msg" class="note"></span>
                            </div>
                        </div>
                        <#continue />
                    </#if>
                    <#if where="column.classType.name!='java.util.Date'||column.classType.name!='java.lang.String'">
                        <div class="row">
                            <label class="tit" for="${column.name}">${column.caption}</label>
                            <div class="con">
                            <input id="${column.name}" name="${column.name}" type="text" value="\${${varName}.${column.name}}"/>
                            <span id="${column.name}Msg" class="note"></span>
                            </div>
                        </div>
                        <#continue />
                    </#if>
            </#list>
            </fieldset>
            <div class="buttonPanel">
                ${"<"}#if where="action.id==0" >
                    <button id="submit" name="method" value="save" type="submit" class="jDefButton"><i class="jIcoAdd"></i>添加</button>
                ${"<"}#else>
                    <button id="submit" name="method" value="edit" type="submit" class="jDefButton"><i class="jIcoSave"></i>保存</button>
                    <input id="id" name="id" type="hidden" value='\${action.id}' >
                ${"<"}/#else>
                ${"<"}/#if>
            </div>

        </form>
    </div>
</div>
</body>
</html>
